<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="AddCompany.aspx.cs" Inherits="Admin_AddCompany" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="page-heading">
        <h1>
            Add Company</h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
            <th class="topleft" style="width: 401px">
            </th>
            <td id="tbl-border-top">
                &nbsp;</td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr valign="top" style="width: 360px;">
                            <td style="width: 875px; float: left;" valign="top" colspan="2" rowspan="">
                                <!--  start step-holder -->
                                <!--  end step-holder -->
                                <!-- start id-form -->
                                <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Company Name:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtName" runat="server" />
                                        </td>
                                        <td rowspan="15" valign="bottom" style="width: 471px">
                                            &nbsp; &nbsp;&nbsp;&nbsp;
                                            <table border="0" width="50%" cellpadding="0" cellspacing="0" style="border-left: #000033 1px dotted">
                                                <tr>
                                                    <th valign="top" colspan="2" rowspan="3">
                                                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                                                            <contenttemplate>
                                                        Product Category: &nbsp;
                                                        <asp:DropDownList ID="ddlProCat" Width="200px" CssClass="textall" runat="server" OnSelectedIndexChanged="ddlProSubCat_OnSelectedIndexChanged"
                                                            AutoPostBack="true">
                                                        </asp:DropDownList><br />
                                                        SubCategory: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                        <asp:DropDownList ID="ddlSubCat" AutoPostBack="true" CssClass="textall" runat="server"
                                                            Width="200px" OnSelectedIndexChanged="ddlSubCat_OnSelectedIndexChanged">
                                                        </asp:DropDownList><br />
                                                        Sub-SubCategory: &nbsp;
                                                        <asp:DropDownList ID="ddlSubSubCat" CssClass="textall" runat="server" Width="200px">
                                                        </asp:DropDownList>
                                                         </contenttemplate>
                                                        </asp:UpdatePanel>
                                                    </th>
                                                    <td style="width: 11px" colspan="3">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px" rowspan="2">
                                                    </th>
                                                    <td style="width: 349px">
                                                        &nbsp;</td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td style="width: 349px">
                                                        &nbsp;</td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Buyer/Seller:</th>
                                                    <td style="width: 349px">
                                                        &nbsp;<asp:CheckBox ID="chkBuy" runat="server" Text="Buyer" />
                                                        <asp:CheckBox ID="chkSel" runat="server" Text="Seller" /></td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Type of Company:</th>
                                                    <td style="width: 349px">
                                                        <ul style="list-style-type: none;">
                                                            <asp:Repeater ID="rpttypeCompany" runat="server" OnItemDataBound="rpttypeCompany_OnItemDataBound">
                                                                <ItemTemplate>
                                                                    <li style="float: left; list-style-type: none;">
                                                                        <asp:CheckBox ID="chkTypeCom" runat="server" Text="Buyer" />
                                                                        <asp:HiddenField ID="hidID" runat="server" />
                                                                    </li>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </ul>
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px;">
                                                        Type of Business:</th>
                                                    <td style="width: 349px; ">
                                                        <ul style="list-style-type: none;">
                                                            <asp:Repeater ID="rptTypeBusiness" runat="server" OnItemDataBound="rptTypeBusiness_OnItemDataBound">
                                                                <ItemTemplate>
                                                                    <li style="float: left; list-style-type: none;">
                                                                        <asp:CheckBox ID="chkTypeBussiness" runat="server" Text="Buyer" />
                                                                        <asp:HiddenField ID="hidID" runat="server" />
                                                                    </li>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </ul>
                                                    </td>
                                                    <td style="width: 11px;">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Major Market:</th>
                                                    <td style="width: 349px">
                                                        <ul style="list-style-type: none;">
                                                            <asp:Repeater ID="rptMarjor" runat="server" OnItemDataBound="rptMarjor_OnItemDataBound">
                                                                <ItemTemplate>
                                                                    <li style="float: left; list-style-type: none;">
                                                                        <asp:CheckBox ID="chkMarjor" runat="server" Text="Buyer" />
                                                                        <asp:HiddenField ID="hidID" runat="server" />
                                                                    </li>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </ul>
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Registered capital:</th>
                                                    <td style="width: 349px">
                                                        <input type="text" class="inp-form" id="txtRegisCap" runat="server" />
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Turnover:</th>
                                                    <td style="width: 349px">
                                                        <input type="text" class="inp-form" id="txtTurn" runat="server" />
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Export turnover:</th>
                                                    <td style="width: 349px">
                                                        <input type="text" class="inp-form" id="txtExTurn" runat="server" />
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Number of Employyer:</th>
                                                    <td style="width: 349px">
                                                        <input type="text" class="inp-form" id="txtNumEmployee" runat="server" />
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Certificate:</th>
                                                    <td style="width: 349px">
                                                        &nbsp;<ul style="list-style-type: none;">
                                                            <asp:Repeater ID="rptCertifi" runat="server" OnItemDataBound="rptCertifi_OnItemDataBound">
                                                                <ItemTemplate>
                                                                    <li style="float: left; list-style-type: none;">
                                                                        <asp:CheckBox ID="chkCertifi" runat="server" Text="Buyer" />
                                                                        <asp:HiddenField ID="hidID" runat="server" />
                                                                    </li>
                                                                </ItemTemplate>
                                                            </asp:Repeater>
                                                        </ul>
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Capacity(product/year):</th>
                                                    <td style="width: 349px">
                                                        <input type="text" class="inp-form" id="txtCapacity" runat="server" />
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 326px">
                                                        Website:</th>
                                                    <td style="width: 349px">
                                                        &nbsp;<input type="text" class="inp-form" id="txtWebsite" runat="server" /></td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <th valign="top" style="width: 137px">
                                                        Email:</th>
                                                    <td style="width: 263px">
                                                        <input type="text" class="inp-form" id="txtEmail" runat="server" />
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="2">
                                                    </td>
                                                    <td style="width: 11px">
                                                    </td>
                                                </tr>
                                                &nbsp;</table>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Country:</th>
                                        <td style="width: 263px">
                                            &nbsp;
                                            <asp:DropDownList ID="ddlCountry" runat="server" Width="180px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Member:</th>
                                        <td style="width: 263px">
                                            &nbsp;
                                            <asp:DropDownList ID="ddlMember" runat="server" Width="180px">
                                            </asp:DropDownList>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Zip/postal Code</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtZip" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Company Logo:</th>
                                        <td style="width: 263px">
                                            &nbsp;
                                            <asp:FileUpload ID="UL_Picture" runat="server" /><br />
                                            <img src="" id="img" style="width: 30px; height: 30px;" runat="server" alt="logo" />
                                            <asp:LinkButton ID="linkDelete" runat="server" OnClick="linkDelete_Click">Delete</asp:LinkButton>
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Address:</th>
                                        <td style="font-weight: bold; width: 263px;">
                                            <input type="text" class="inp-form" id="txtAddress" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px; height: 46px">
                                            Year of establishment:</th>
                                        <td style="width: 263px; height: 46px">
                                            <input type="text" class="inp-form" id="txtYearofEst" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Primary Product(s):</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtPrimaryPro" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Representative Name:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtRepName" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Gender:</th>
                                        <td style="width: 263px">
                                            <p style="float: left; margin-right: 13px;">
                                                <input type="radio" class="inp-form-rdo" id="rdoMale" runat="server" />&nbsp;Mr</p>
                                            <p style="float: left; margin-right: 13px;">
                                                <input type="radio" class="inp-form-rdo" id="rdiFemale" runat="server" />&nbsp;Ms</p>
                                            <input type="radio" class="inp-form-rdo" id="rdoML" runat="server" />&nbsp;Mr.Ms&nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Position/Job title:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtJobTitRep" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px; height: 43px">
                                            Contact person:</th>
                                        <td style="width: 263px; height: 43px">
                                            <input type="text" class="inp-form" id="txtContactPeron" runat="server" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Gender:</th>
                                        <td style="width: 263px">
                                            <p style="float: left; margin-right: 13px;">
                                                <asp:RadioButton Checked="true" ID="rdoMaleCon" runat="server" GroupName="abc" />&nbsp;Mr</p>
                                            <p style="float: left; margin-right: 13px;">
                                                <asp:RadioButton ID="rdiFemaleCon" runat="server" GroupName="abc" />&nbsp;Ms</p>
                                            <asp:RadioButton ID="rdoMrMsCon" runat="server" GroupName="abc" />&nbsp;Mr.Ms&nbsp;
                                        </td>
                                    </tr>
                                    <tr id="tr" runat="server">
                                        <th valign="top" style="width: 137px">
                                            Position/Job title:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtJobTitleContact" runat="server" /></td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                            Telephone:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtPhone" runat="server" onkeyup="this.value = FormatNumber(this.value);" />
                                        </td>
                                    </tr>
                                    <tr id="tr1" runat="server">
                                        <th valign="top" style="width: 137px">
                                            Fax:</th>
                                        <td style="width: 263px">
                                            <input type="text" class="inp-form" id="txtFax" runat="server" onkeyup="this.value = FormatNumber(this.value);" /></td>
                                    </tr>
                                    <tr>
                                        <th valign="top" style="width: 137px">
                                        </th>
                                        <td style="width: 263px">
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <label style="font-weight: bold; color: Black;">
                                    Description Company</label>
                                <FCKeditorV2:FCKeditor ID="fck_Desc" runat="server" Width="750px" ToolbarSet="RTI"
                                    Height="250px" ToolbarCanCollapse="false" BasePath="~/Javascripts/FCKEditor/">
                                </FCKeditorV2:FCKeditor>
                                &nbsp;<!-- end id-form  -->
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 875px; height: 12px;">
                                <img src="images/shared/blank.gif" height="1" alt="blank" style="width: 871px" /></td>
                            <td style="height: 12px">
                            </td>
                        </tr>
                    </table>
                    &nbsp;
                    <asp:Button ID="btnsave" CssClass="form-submit" Text="Save" runat="server" OnClick="btnsave_Click"
                        TabIndex="13" />
                    <asp:Button ID="btnexit" CssClass="form-reset" Text="Reset" runat="server" OnClick="btnexit_Click"
                        CausesValidation="False" />
                    <div class="clear">
                        <asp:Literal ID="lblMessage" runat="server"></asp:Literal>
                    </div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft" style="width: 401px">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;</td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <div class="clear">
        &nbsp;</div>
</asp:Content>
